import com.practice.config.SpringConfig;
import com.practice.entity.Emp;
import com.practice.service.EmpService;
import com.practice.service.serviceImpl.EmpServiceImpl;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.List;

/**
 * @author:高杰领
 * @date:2021/11/18 10:08
 * @description:
 * @version:
 **/
public class test {
    EmpServiceImpl empService;
    @Test
    public void name() {

        List<Emp> empList = empService.selectAll();
        for (Emp emp : empList) {
            System.out.println(emp.toString());
        }

    }
}
